<template>
  <VanButton> 按钮</VanButton>
</template>
<script lang="ts">
  // @ts-nocheck
  import { defineComponent, reactive } from 'vue';
  import { Button } from 'vant';
  import { useProvider } from '@vtj/uni-app';
  export default defineComponent({
    name: 'Order',
    components: { VanButton: Button },
    setup(props) {
      const provider = useProvider({ id: '96xjbxqj', version: '1750816750140' });
      const state = reactive({});
      return { state, props, provider };
    },
    methods: {
      handleBuy() {
        uni.showToast({ title: '购买成功', icon: 'success' });
      },
      handleAddCart() {
        uni.showToast({ title: '已加入购物车', icon: 'none' });
      }
    }
  })
</script>
<style lang="scss" scoped>
  .container {
    padding: 20px;
  }
  .container .card-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
  }
</style>
